import pandas as pd
import matplotlib.pyplot as plt

df=pd.read_excel('某店铺促销方式分析.xlsx')
plt.rcParams['font.sans-serif']='SimHei'

plt.pie(x=df['购买人数'], labels=df['促销方式'],
        autopct='%.2f%%', startangle=90, counterclock=False,
        wedgeprops={'linewidth': 1, 'edgecolor': 'white'})
plt.title('某店铺不同促销方式下购买人数占比饼图')
plt.show()